package com.huangliusong.desigin.pattern.behavioral.templatemethod;

/**
 * @author huangliusong
 * @since 2018/10/13
 * {@link }
 */
public class FECourse extends ACourse {
    private boolean needWriteActicleFlag=false;
    void packageCourse() {
        System.out.println("提供课程源码");
        System.out.println("提供课程的多媒体素材");
    }

    @Override
    protected boolean needWriteArticle() {
        return this.needWriteActicleFlag;
    }

    public FECourse(boolean needWriteActicleFlag) {
        this.needWriteActicleFlag = needWriteActicleFlag;
    }
}
